package net.maku.system.vo;

import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author Administrator
 */
@Data
public class UnionLoginVO {

    public static final Integer SOURCE_MINI = 0;
    public static final Integer SOURCE_PUBLIC = 1;

//    @NotNull(message = "openId不能为空")
    private String openId;

    @NotNull(message = "unionId不能为空")
    private String unionId;
    /**
     * 请求来源，0.小程序，1.h5公众号
     */
    @NotNull(message = "请求来源不能为空")
    private Integer source;
    /**
     * 微信小程序的code，来源为小程序是传
     */
    private String code;
    /**
     * h5传过来的手机号，来源为公众号传
     */
    private String phone;


}
